package com.example.demo.service;

import com.example.demo.crawler.Crawler;
import com.example.demo.crawler.DeafaultCrawlerImpl;
import com.example.demo.processor.MenuProcessor;
import com.example.demo.processor.Processor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class MenuService extends AbstractDingdianService{

    @Override
    @Resource(name = "deafaultCrawlerImpl")
    public void setCrawler(Crawler crawler) {
        super.setCrawler(crawler);
    }

    @Override
    @Resource(name = "menuProcessor")
    public void setProcessor(Processor processor) {
        super.setProcessor(processor);
    }
}
